const getters = {
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  device: state => state.app.device,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  token: state => state.user.token,
  userInfo: state => state.user.userInfo,
  // avatar: state => state.user.avatar,
  // 新增加了四个getter数据
  // introduction: state => state.user.introduction,
  img: state => state.user.userInfo.img,
  role: state => state.user.userInfo.role,
  permission_routes: state => state.permission.routes,
  errorLogs: state => state.errorLog.logs,

  fileUpload: state => state.api.fileUpload
}
export default getters
